/**
 * 浏览器 
 */
export function browser() {
    let test = function (regexp) {
        return regexp.test(navigator.userAgent)
    }
    switch (true) {
        case test(/edg/i): return "Microsoft Edge";
        case test(/trident/i): return "Microsoft Internet Explorer";
        case test(/firefox|fxios/i): return "Mozilla Firefox";
        case test(/opr\//i): return "Opera";
        case test(/ucbrowser/i): return "UC Browser";
        case test(/samsungbrowser/i): return "Samsung Browser";
        case test(/chrome|chromium|crios/i): return "Google Chrome";
        case test(/safari/i): return "Apple Safari";
        case test(/iPhone/i): return "Apple Safari";
        default: return "Other";
    }
}
/**
* 手机
*/
export function isMobile() {
    return !(/Android|mobile|iPad|iPhone/i.test(navigator.userAgent));
}